
#include "stdafx.h"
#include "Serialize.h"
#include "VARBinary.h"

bool ISerialize::checkSize(CVARBinary &bin)
{
	size_t leftLength = bin.leftLength(), sz = serialSize();
	return leftLength >= sz ? true : bin.enlargeSize(sz - leftLength);
}
